﻿<UserControl x:Class="TM.QWeibo.Client.UserControls.ProfileInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
        <Grid x:Name="ProfileInfoLayoutRoot" Background="Transparent">
        <ScrollViewer>
            <StackPanel >
            <TextBlock Text="个人资料" Style="{StaticResource InfoTitleStyle}"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Sex}" Style="{StaticResource InfoContentStyle}"/>
                <TextBlock Text="{Binding Location}" Margin="12,0,0,0" Style="{StaticResource InfoContentStyle}"/>
            </StackPanel>
            <TextBlock x:Name="tbUserInfo" Text="{Binding Introduction}" Style="{StaticResource InfoContentStyle}"/>
            <TextBlock Text="认证信息" Style="{StaticResource InfoTitleStyle}" Visibility="{Binding IsVip, Converter={StaticResource IntToVisibleConverter}}"/>
            <TextBlock x:Name="tbUserVerifyInfo" Text="{Binding VerifyInfo}" Style="{StaticResource InfoContentStyle}" Visibility="{Binding IsVip, Converter={StaticResource IntToVisibleConverter}}"/>
            <Grid Height="100">
                <Grid.RowDefinitions>
                    <RowDefinition Height="100" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="12" />
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="12" />
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="12" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid x:Name="Grid1" Grid.Row="0" Grid.Column="0" Style="{StaticResource InfoCountBlock}" Tap="Grid_Tap" Tag="0">
                        <TextBlock Text="微博" Style="{StaticResource InfoCountTypeStyle}" />
                        <TextBlock x:Name="tbTweetCount" Text="{Binding Tweetnum,Converter={StaticResource BigNumberConverter}}" Style="{StaticResource InfoCountNumStyle}" />
                </Grid>
                    <Grid x:Name="Grid2" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Left"  Style="{StaticResource InfoCountBlock}" Tap="Grid_Tap" Tag="1">
                        <TextBlock Text="收听"  Style="{StaticResource InfoCountTypeStyle}" />
                        <TextBlock x:Name="tbFansCount" Text="{Binding Idolnum,Converter={StaticResource BigNumberConverter}}" Style="{StaticResource InfoCountNumStyle}" />
                 </Grid>
                    <Grid  x:Name="Grid3" Grid.Row="0" Grid.Column="4" HorizontalAlignment="Left" Style="{StaticResource InfoCountBlock}" Tap="Grid_Tap"  Tag="2">
                        <TextBlock Text="粉丝"  Style="{StaticResource InfoCountTypeStyle}" />
                        <TextBlock x:Name="tbFanseCount" Text="{Binding Fansnum,Converter={StaticResource BigNumberConverter}}" Style="{StaticResource InfoCountNumStyle}" />
                 </Grid>
                    <Grid x:Name="Grid4" Grid.Row="0" Grid.Column="6" HorizontalAlignment="Left" Style="{StaticResource InfoCountBlock}" Tap="Grid_Tap" Tag="3">
                        <TextBlock Text="收藏"  Style="{StaticResource InfoCountTypeStyle}" />
                        <TextBlock x:Name="tbFavCount" Text="{Binding Favnum}" Style="{StaticResource InfoCountNumStyle}" />
                 </Grid>
                </Grid>
                <TextBlock Text="标签" Margin="0,8,0,0" Style="{StaticResource InfoTitleStyle}"  Visibility="{Binding Tag, Converter={StaticResource StringToVisibleConverter}}"/>
                <TextBlock x:Name="tbTags" Text="{Binding Tag}" Style="{StaticResource InfoContentStyle}" />
        </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
